<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 85167
  Date: 2017/12/10
  Time: 11:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <c:import url="/WEB-INF/page/header.jsp"/>
</head>
<body>
<h4 class="m-t"></h4>
<div class="row">
    <div class="example-wrap">
        <div class="panel panel-default">
            <div class="panel-heading">系统参数配置</div>
            <form id="menuForm" action="${pageContext.request.contextPath}/admin/sys_config/save" method="post"
                  class="form-horizontal">
                <input type="hidden" name="id" value="${info.id}">
                <div class="form-group">
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">房间结束最大人数：</label>
                    <div class="col-sm-3">
                        <input type="text" name="countNum" class="form-control" placeholder="参与人数"
                               value="${info.countNum}" required=""
                               aria-required="true">
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-3">
                        <button class="btn btn-primary" type="button" onclick="save()">保存</button>
                        <button class="btn btn-white" type="button" onclick="cancel()">取消</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<c:import url="/WEB-INF/page/footer.jsp"/>
<script type="text/javascript">
    $().ready(function () {
        $("#menuForm").validate();
    });


    function save() {
        saveData(base + "/admin/sys_config/save", $("#menuForm").serialize());
        this.location.reload(true);
    }

</script>
</body>
</html>
